import request from "@/api/request";
export function roleList() {
    return request({
        url: '/user/role/all/',
        method: 'get'
    })
}
export function functionList() {
    return request({
        url: '/user/order/',
        method: 'get'
    })
}
export function userAdd(data) {
    return request({
        url: '/user/add/',
        method: 'post',
        data
    })
}
export function userEdit(data) {
    return request({
        url: '/user/edit/',
        method: 'post',
        data
    })
}
export function userDel(user_id) {
    return request({
        url: '/user/del/',
        method: 'get',
        params:{
            user_id
        }
    })
}
export function userList() {
    return request({
        url: '/user/all',
        method: 'get'
    })
}
